package com.liu.jpa.command;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import lombok.Data;
import org.apache.poi.ss.usermodel.*;

@Data
@HeadFontStyle(fontHeightInPoints = 14)
@HeadStyle(fillPatternType = FillPatternType.SOLID_FOREGROUND, fillForegroundColor = 9)
@ContentFontStyle(fontHeightInPoints = 12)
@ContentRowHeight(200)
@HeadRowHeight(20)
@ColumnWidth(25)
public class ExcelHeaderData {


    @ExcelIgnore
    private String weekId;

    @ContentStyle(
            horizontalAlignment = HorizontalAlignment.CENTER,
            borderLeft = BorderStyle.THIN,
            borderRight = BorderStyle.THIN,
            borderTop = BorderStyle.THIN,
            borderBottom = BorderStyle.THIN
    )
    @ExcelProperty({"项目周报", "项目编码"})
    private String prjIntnumber;

    @ContentStyle(
            horizontalAlignment = HorizontalAlignment.CENTER,
            borderLeft = BorderStyle.THIN,
            borderRight = BorderStyle.THIN,
            borderTop = BorderStyle.THIN,
            borderBottom = BorderStyle.THIN
    )
    @ExcelProperty({"项目周报", "项目名称"})
    private String prjName;

    @ContentStyle(
            borderLeft = BorderStyle.THIN,
            borderRight = BorderStyle.THIN,
            borderTop = BorderStyle.THIN,
            borderBottom = BorderStyle.THIN,
            wrapped = true
    )
    @ExcelProperty({"项目周报", "项目说明"})
    private String prjExplain;

    @ContentStyle(
            borderLeft = BorderStyle.THIN,
            borderRight = BorderStyle.THIN,
            borderTop = BorderStyle.THIN,
            borderBottom = BorderStyle.THIN,
            wrapped = true
    )
    @ExcelProperty({"项目周报", "完成情况"})
    private String complete;

    @ContentStyle(
            borderLeft = BorderStyle.THIN,
            borderRight = BorderStyle.THIN,
            borderTop = BorderStyle.THIN,
            borderBottom = BorderStyle.THIN,
            wrapped = true
    )
    @ExcelProperty({"项目周报", "项目分析"})
    private String analysis;

    @ExcelIgnore
    private String prjLeader;

    @ExcelIgnore
    private String wTime;


}
